Skip to content

Ti Pro25 Smart Cat Litter Box#5585

Merged
make-all merged 20 commits into
make-all:mainfrom
claudiu-persoiu:main
Jul 20, 2026
Merged

Ti Pro25 Smart Cat Litter Box#5585
make-all merged 20 commits into
make-all:mainfrom
claudiu-persoiu:main

Conversation

@claudiu-persoiu

Copy link
Copy Markdown
Contributor

Ti Pro25 Smart Cat Litter Box support.

The device is also found as: iHunt Smart Cat Litter V1

dps that are not mapped:
134 - weight in lb, the cat weight is displayed in kg or lb when changing the unit, this is not necessary
109 - odor removal, seems to be internal
110 - sleep mode, seems to be internal for schedule
106, 107, 108 - autocleaning with schedule configs
112, 119, 121, 122, 128, 129 - didn't find buttons in the app
115 - calibration could not find a button in the app

My request support for this device: #5541

@github-project-automation github-project-automation Bot moved this to 👀 In review in Tuya Local Jul 14, 2026
@make-all make-all moved this from 👀 In review to 🏗 Stalled in Tuya Local Jul 14, 2026
@claudiu-persoiu

Copy link
Copy Markdown
Contributor Author

Hey @make-all is there a way to run the checks locally? It's my first time making a PR for this project.

@claudiu-persoiu

Copy link
Copy Markdown
Contributor Author

I think I should have enabled workflows actions for the fork, seems to work now and also there aren't any errors anymore.

@make-all make-all linked an issue Jul 14, 2026 that may be closed by this pull request
@make-all make-all moved this from 🏗 Stalled to 👀 In review in Tuya Local Jul 15, 2026
Comment thread custom_components/tuya_local/devices/ti_pro25_catlitterbox.yaml
Comment thread custom_components/tuya_local/devices/ti_pro25_catlitterbox.yaml
Comment thread custom_components/tuya_local/devices/ti_pro25_catlitterbox.yaml Outdated
Comment thread custom_components/tuya_local/devices/ti_pro25_catlitterbox.yaml Outdated
Comment thread custom_components/tuya_local/devices/ti_pro25_catlitterbox.yaml Outdated
@github-project-automation github-project-automation Bot moved this from 👀 In review to 🏗 Stalled in Tuya Local Jul 16, 2026
Comment thread custom_components/tuya_local/devices/ti_pro25_catlitterbox.yaml Outdated
value: "kg"
- dps_val: "kilogram"
value: "lb"
# mapping:

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert this change, the units passed to HA must match what is expected.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I need some help, it worked at first, I've committed, then I've done a restart and the value doesn't change anymore. If I remove the mapping it's working but it's displaying the wrong unit, since they are reversed. Also it is generating a warning because of the values mapping in HA.

I'm not sure what to do at this point.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there something related to the fact that I'm mapping the value both for "Cat Weight" and for the "unit" select?

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the UI is converting the units, then the value not changing in the UI when the units are changed in the device would be correct.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the mapping on the unit in "cat weight", the value and the unit of the value doesn't change and the value in pounds is always displayed.
If I remove the mapping for the unit in "cat weight", then it is working as expected but the value of the unit is reversed, because the value for the dps is reversed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I understand now, my HA has unit_system: metric which should display the values in kg. The problem is the Unit dps 116 is reverted. HA will try to display the value in kg but since it is reverted it will always display it the other way around.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to condition by the units of HA instead of the dps 116?

@make-all make-all Jul 18, 2026

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are thinking about the problem wrong.

There is a device setting for units, the device will use that.
There is a UI setting for HA, which HA will use.

When everything is set up properly, the above two should match. This is a one time setup by the user, and it is unlikely they will want to change that with any frequency.

When they do not match, then HA will see that the device is using different units, and will convert the units for display. So when the device config is correct, you should see no effect in the HA UI (or only within rounding error change) when switching the device unit.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the mapping on the unit in "cat weight", the value and the unit of the value doesn't change and the value in pounds is always displayed. If I remove the mapping for the unit in "cat weight", then it is working as expected but the value of the unit is reversed, because the value for the dps is reversed.

The config appears to have been correct back here. But I am not sure which commit this was (or even if you committed this, or was it just a local test?)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added the class back. I tried to change the unit system in HA from metric to better understand the conversion, and I noticed it was set in configuration.yaml, I removed it from there, set it from UI, and now it's working displaying the weight in kg.

@claudiu-persoiu
claudiu-persoiu requested a review from make-all July 16, 2026 17:56
@make-all make-all moved this from 🏗 Stalled to 👀 In review in Tuya Local Jul 17, 2026
@make-all
make-all merged commit a5fce7a into make-all:main Jul 20, 2026
5 checks passed
@github-project-automation github-project-automation Bot moved this from 👀 In review to ✅ Done in Tuya Local Jul 20, 2026
make-all added a commit that referenced this pull request Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

Request support for Ti Pro25 Smart Cat Litter Box

3 participants